var Flasher = {

/*
	 * This function takes the id of an element and animates it's background colour from
	 * black to white. Once the color is white, the animation is stopped and the original
	 * colour of the element is restored.
	 *
	 * NOTE: Several things need to be fixed before it works...
	 */
	flash: function(id, original_colour) {
		var e = document.getElementById(id);
                var colour = 0;
                
		id = setInterval(function() {
			colour += 5;
			e.style.backgroundColor = "#"+ colour.toString(16) 
                            + colour.toString(16) + colour.toString(16);

			if (colour == 250) {
				clearInterval(id);
				e.style.backgroundColor = original_colour;
			}
		}, 5);
	}
}